Fix Xen panic with oprofile
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 2 Dec 2008 11:53:24 +0000 (11:53 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 2 Dec 2008 11:53:24 +0000 (11:53 +0000)
commit3f5125965b7a918a54fa7867c30c8a2910d3c6b0
treee9741472775e5d2518a8ca9e019742a34a649e1a
parentcedf79a3b2b6942ac000a547c36d320684d4a22e
Fix Xen panic with oprofile

The attached patch fixes a Xen panic when a domain is shutdown before
oprofile is stopped. Without this patch, free_xenoprof_pages() is
called before the domain is destroyed and that, in turn, prevents
oprofile from cleaning up pages shared with guests. Shutting down a
domain without terminating oprofile therefore causes a Xen panic at a
later point in time.

Signed-off-by: Niraj Tolia <niraj.tolia@hp.com>
xen/arch/ia64/xen/domain.c
xen/arch/x86/domain.c
xen/common/domain.c